package com.yami.shop.vo.group;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GroupScanVo implements Serializable {

    @Schema(description = "创建群组 ID，支持大小写英文字母、数字、部分特殊符号 + = - _ 的组合方式，最大长度 64 字节", required = true)
    private String groupId;

    @NotEmpty(message = "群组名称不能为空")
    @Schema(description = "群组id对应的群组名称", required = true)
    private String groupName;

    @Schema(description = "群主id")
    private String creatorUserId;

    @Schema(description = "群成员列表", required = true)
    private String userId;

    @Schema(description = "加入群聊方式，为空或者00为二维码，01-搜索")
    private String joinType;

}
